//---------------------------------------------------------------------------

#ifndef LgotH
#define LgotH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "cxButtons.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "DBCtrlsEh.hpp"
#include <Menus.hpp>
#include <ActnList.hpp>
#include "cxCalendar.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
#include "cxDBEdit.hpp"
//---------------------------------------------------------------------------
class TfrLgot : public TForm
{
__published:	// IDE-managed Components
	TGroupBox *gbLgota;
	TLabel *Label1;
	TDBLookupComboBox *cbNAIM_LG;
	TDBEdit *dbeKOD_LG;
	TLabel *Label14;
	TDBEdit *dbePROC;
	TLabel *Label17;
	TLabel *Label15;
	TLabel *Label2;
	TLabel *Label18;
	TcxButton *btSave;
	TcxButton *btCancel;
	TcxButton *btKON_LG;
	TDBLookupComboBox *cbFIO;
	TcxButton *btADD;
	TActionList *ActionList1;
	TAction *ADD_SPR;
	TLabel *labDAT_PODTV;
	TIBCQuery *dsetPROVERKA;
	TIBCDataSource *dsPROVERKA;
	TDBEdit *dbeUDOSTOV;
	TcxDBDateEdit *dtpDATA_NACH;
	TcxDBDateEdit *dtpDATA_KON;
	TcxDBDateEdit *dtpDAT_PODTV;
	TAction *actSAVE;
	TAction *actKON_LG;
	TAction *actESC;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall actSAVEExecute(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
	void __fastcall cbNAIM_LGKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeUDOSTOVKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpDATA_NACHKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpDATA_KONKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbFIOKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall actKON_LGExecute(TObject *Sender);
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
	void __fastcall btADDClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
int Stat,NOM,USPEH,REDAKT_LG,PODTV;
	__fastcall TfrLgot(TComponent* Owner);
	int __fastcall TfrLgot::PROVERKA();
	void __fastcall TfrLgot::SAVE();

};
//---------------------------------------------------------------------------
extern PACKAGE TfrLgot *frLgot;
//---------------------------------------------------------------------------
#endif
